package com.hliushi.learn.utils.key;

// import javax.crypto.KeyGenerator;

/**
 * @author llhuang10
 * @date 2021/7/20 19:52
 */
public class SnowflakeGenerator implements KeyGenerator {


    public SnowflakeGenerator() {
        super();
    }

    public String getValue() {
        Long id = SnowflakeIdWorker.getInstance().nextId(0L, 0L);
        return String.valueOf(id);
    }

    public String getValue(long workId, long datacenterId) {
        return null;
    }
}
